package com.fifth.home.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.fifth.common.pojo.entity.BottomArticle;
import com.fifth.common.pojo.entity.Zone;
import com.fifth.common.pojo.entity.ZoneBusiness;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 专区课程关联表 Mapper 接口
 * </p>
 *
 * @author 第五组
 * @since 2022-09-05
 */
public interface ZoneBusinessMapper extends BaseMapper<ZoneBusiness> {

    IPage<ZoneBusiness> selectManagementZone(IPage<ZoneBusiness> page,  @Param("ew") Wrapper<ZoneBusiness> wrapper);

    IPage<ZoneBusiness> selectManagementZoneUnstockedPutaway(IPage<ZoneBusiness> iPage, @Param("ew") Wrapper<ZoneBusiness> wrapper);

    int updatePutaway(String id);

    int updateIsDisable(@Param("id") String id,@Param("isDisable") String isDisable);

    List<ZoneBusiness> selectAll();

    List<ZoneBusiness> selectByZoneAll();


    IPage<ZoneBusiness> selectByName(IPage<ZoneBusiness> page,@Param("ew") Wrapper<ZoneBusiness> wrapper);
}
